package com.yic.module.system.controller.admin.appversion.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * app版本更新 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class AppVersionBaseVO {

    @Schema(description = "种类", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "种类不能为空")
    private Integer category;

    @Schema(description = "版本号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "版本号不能为空")
    private Integer versionCode;

    @Schema(description = "版本名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotNull(message = "版本名称不能为空")
    private String versionName;

    @Schema(description = "版本信息", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "版本信息不能为空")
    private String versionInfo;

    @Schema(description = "更新类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "更新类型不能为空")
    private String updateType;

    @Schema(description = "安卓链接", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotNull(message = "安卓链接不能为空")
    private String androidUrl;

    @Schema(description = "IOS链接", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotNull(message = "IOS链接不能为空")
    private String iosUrl;

}
